<?php include('page_header.php')?>
<form name="myform1" action="?action=cat_order" method="post">
    <table cellpadding="2" cellspacing="1" class="tableborder">
        <tr>
            <th colspan=10>分类管理</th>
        </tr>
        <tr>
            <td width="60" class="tablerowhighlight">标识<font color="#FF0000">*</font></td>
            <td width="90" class="tablerowhighlight">名称<font color="#FF0000">*</font></td>
            <td width="90" class="tablerowhighlight">路径<font color="#FF0000">*</font></td>
            <td width="30" class="tablerowhighlight">顺序</td>
            <td width="270" class="tablerowhighlight">关键词</td>
            <td width="120" class="tablerowhighlight">操作</td>
        </tr>
        <?php foreach ($categories as $i=>$category):?>
        <tr onMouseOut="this.style.backgroundColor='#F1F3F5'" onMouseOver="this.style.backgroundColor='#CEEAD3'" bgcolor='#F1F3F5'>
            <td><input name="cat_ids[]" type="text" value="<?= $category['cat_id']?>" size="10" disabled></td>
            <td><input name="cat_names[]" type="text" value="<?= $category['cat_name']?>" size="15"></td>
            <td><input name="cat_paths[]" type="text" value="<?= $category['cat_path']?>" size="15"></td>
            <td><input name="cat_orders[]" type="text" value="<?= $category['cat_sort_order']?>" size="5"></td>
            <td><input name="cat_keywords[]" type="text" value="<?= $category['cat_keywords']?>" size="45"></td>
            <td><a href="?c=category&m=edit&cat_id=<?= $category['cat_id']?>">修改</a>&nbsp;|&nbsp;<a href="?c=category&m=delete&cat_id=<?= $category['cat_id']?>">删除</a></td>
        </tr>
		<?php endforeach;?>
        <tr align="right">
            <td colspan="10" bgcolor="#E1E1E1"></td>
        </tr>
        <tr>
            <td colspan="10" bgcolor="#E1E1E1"><input name='' type='submit' value=' 提 交 ' ></td>
        </tr>
    </table>
</form>
<?php include('page_footer.php')?>